-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support installing a specific ddev version #13 #20
Conversation
.github/workflows/main.yml
Outdated
if [[ ${{ matrix.version }} == '1.22.3' ]]; then | ||
test $(ddev --version) == 'ddev version v1.22.3' | ||
else | ||
test $(ddev --version) != 'ddev version v1.22.3' | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems too fragile; can we do something less specific? What's the purpose of this exact stanza?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When using latest as the ddev version, then the version will change over time. This basically checks that if the version is specified, it matches, and if not, it can never match (now that 1.22.4 is out).
I'm open to suggestions here!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks good to me as a test.
This looks and feels very good, thank you @deviantintegral! |
Not from me! We've been using this for nearly a week to work around https://github.com/orgs/ddev/discussions/5470. |
v1.9.0 is released with this. Thanks! |
The Issue
See #13 and jonaseberle/github-action-setup-ddev#15.
How This PR Solves The Issue
If version is specified, we pass that to apt and then hold the package so upgrades won't automatically upgrade it.
Manual Testing Instructions
Automated Testing Overview
This adds a matrix to test both cases for version.